package com.zsy.controller;

import com.zsy.Ai.TongYiA;
import com.zsy.service.impl.websocket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
public class Websoc {

    @Autowired
    private websocket websocket;



    @PostMapping("/hello")
    public String websocketService(@RequestBody String muName){
        return websocket.websocketService(muName);
    }
    @GetMapping("/TongYi")
    public String TongYi(String content){
//        System.out.println(content);
        return TongYiA.TongYi(content);
    }

}
